/**
 * Copyright (C) 2018-2020
 * All rights reserved, Designed By www.yixiang.co
 * 注意：
 * 本软件为www.yixiang.co开发研制
 */
package co.yixiang.modules.shop.service.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.sql.Timestamp;
import java.io.Serializable;
import java.util.List;

/**
 * @author chajiu
 * @date 2021-04-25
 */
@Data
public class ExpressPlanDto implements Serializable {

    /** 方案id */
    @ApiModelProperty(value = "方案id", hidden = true)
    private Integer id;

    /** 门店id */
    @ApiModelProperty(value = "门店id", required = true)
    @NotNull
    private Integer storeId;

    /** 方案名称 */
    @ApiModelProperty(value = "方案名称", required = true)
    @NotBlank
    private String name;

    /** 计费方式 0按件 1按重量 2包邮 */
    @ApiModelProperty(value = "计费方式 0按件 1按重量 2包邮", required = true)
    @NotNull
    private Integer type;

    /** 是否全国统一 0不是 1是 */
    @ApiModelProperty(value = "是否全国统一 0不是 1是", required = true)
    @NotNull
    private Integer isCountry;

    /** 添加时间 */
    @ApiModelProperty(value = "添加时间", hidden = true)
    private Timestamp submitTime;

    /** 更新时间 */
    @ApiModelProperty(value = "更新时间", hidden = true)
    private Timestamp updateTime;

    /** 唯一ID */
    @ApiModelProperty(value = "唯一ID")
    private String uniqueId;

    @ApiModelProperty(value = "方案细节", required = true)
    private List<ExpressPlanDetailDto> planDetailDtoList;

    @ApiModelProperty(value = "可配送范围")
    private String availableArea;


}
